package store

import (
	"manager/model"
	"manager/model/entity"
)

type IRouteList interface {
	Create(e *entity.RouteList) (int64, error)
	Find(id int64) (*entity.RouteList, error)
	Update(id int64, updates map[string]interface{}) error
	Delete(id int64) error
	DeleteByParameter(req *model.RouteListDeleteRequest) error
	ClearRouteList(userId, bikeId int64) error
	ClearExpireData(userId, bikeId int64) error
	List(in *model.RouteListListRequest, isUpdate bool) (int, []*entity.RouteList, error)
}
